package com.peakmain.homemodule.base;

import com.peakmain.homemodule.component.ActivityComponent;
import com.peakmain.homemodule.component.DaggerActivityComponent;
import com.peakmain.wanandroid.netmodule.NetApplication;
import com.peakmain.wanandroid.netmodule.base.BaseContract;
import com.peakmain.wanandroid.netmodule.di.module.ActivityModule;
import com.peakmain.wanandroid.netmodule.permission.BasePermissionsActivity;

/**
 * author: peakmain
 * createdata：2019/7/23
 * mail: 2726449200@qq.com
 * desiption:
 */
public abstract class BaseHomeActivity<T extends BaseContract.BasePresenter> extends BasePermissionsActivity<T> {
  public ActivityComponent mActivityComponent;
    @Override
    public void initActivityComponent() {
      mActivityComponent = DaggerActivityComponent.builder()
              .applicationComponent(((NetApplication) getApplication()).getApplicationComponent())
              .activityModule(new ActivityModule(this))
              .build();
    }
}
